Introduction

In this tutorial you will learn how to get started with version control using git and GitHub. The main goal here is to provide a step-by-step introduction to GitHub, with detailed screenshots, so that you become familiar with its main functionalities.

Who

This tutorial is intended for grad students and academics who use R but are unfamiliar with the command line or terminal. I assume nothing about the computer science skills of the user.

What

The outline is provided in the floating table of contents.

Why

Familiarity with GitHub has become an indispensible tool for anyone working with data. Sharing code, writing software for your statistical method, producing techincal reports and creating websites have become essential skills to have in the rapidly growing field of data science. Other brief answers can be found here and here.



Chapter 1: Installing Git

Step 1

Git is to GitHub, what R is to RStudio. In other words Git is the software that does all the work behind the scenes, and GitHub a user interface that makes its easier to communicate with Git (and adds functionality as well).






Step 2






Step 3






Step 4






Step 5






Step 6






Step 7






Step 8






Step 9






Step 10






Step 11






Step 12






Chapter 2: Signup for a GitHub account and hello world tutorial

Step 1






Step 2






Step 3






Step 4






Step 5






Chapter 3: Installing GitHub Desktop

Step 1






Step 2






Step 3






Step 4






Step 5






Step 6






Step 7






Step 8






Step 9






Step 10






Step 11






Step 12






Step 13






Step 14






Chapter 4: Version control R code using an example of PCA

Step 1






Step 2






Step 3






Step 4






Step 5






Step 6






Step 7






Step 8






Step 9






Step 10






Step 11






Step 12






Step 13






Step 14






Step 15






Step 16






Step 17






Step 18






Step 19






Chapter 5: Create a branch, pull request, merge

Step 1






Step 2






Step 3






Step 4






Step 5






Step 6






Step 7






Step 8






Step 9






Step 10






Step 11






Step 12






Step 13






Step 14






Step 15






Step 16






Step 17






Step 18






Chapter 6: Brief Intro to Rstudio Git functionality

Step 1






Step 2






Step 3






Step 4






Step 5






Step 6






Step 7






Step 8






Step 9






Step 10






Step 11






Chapter 7: Create and publish an Rmarkdown document

Step 1






Step 2






Step 3






Step 4






Step 5






Step 6






Step 7






Step 8






Step 9






Step 10






Step 11






Step 12






Step 13






Step 14






Step 15






Step 16






Step 17






Chapter 8: Create an online CV

Step 1






Step 2






Step 3






Step 4






Step 5






Step 6






Step 7






Step 8






Step 9






Step 10